﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RoomFeesDetails.ascx.cs" Inherits="UserControl_RoomFeesDetails" %>
<gr:GuruGrid runat="server" ID="uxFeesGrid" AllowSorting="true" AllowFilteringByColumn="false" OnItemCreated="uxFeesGrid_ItemCreated"
    AllowPaging="false" OnNeedDataSource="uxFeesGrid_NeedDataSource" OnItemDataBound="uxFeesGrid_ItemDataBound" >
    <MasterTableView DataKeyNames="RoomID">      
        <NestedViewTemplate>
            <div class="containerHasBG" style="padding:10px; margin:-1px">
                <gr:Container ID="Container1" runat="server"  HideHeader="true">
                    <gr:GuruGrid runat="server" ID="uxServicesGrid" AllowSorting="false" AllowFilteringByColumn="false"
                        AllowPaging="false" PageSize="10" OnNeedDataSource="uxServicesGrid_NeedDataSource">
                        <MasterTableView>
                            <Columns>
                                <gr:GuruGridBoundColumn UniqueName="ServiceName" DataField="ServiceName" HeaderText="Tên dịch vụ">
                                </gr:GuruGridBoundColumn>
                                <gr:GuruGridBoundColumn DataField="Quantity" Format="Number" HeaderText="Số lượng">
                                </gr:GuruGridBoundColumn>
                                <gr:GuruGridBoundColumn DataField="Price" Format="Currency" HeaderText="Đơn giá">
                                </gr:GuruGridBoundColumn>
                                <gr:GuruGridBoundColumn DataField="Amount" Format="Currency" HeaderText="Thành tiền">
                                </gr:GuruGridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </gr:GuruGrid>
                </gr:Container>
            </div>
           
        </NestedViewTemplate>
        <Columns>
            <gr:GuruGridBoundColumn Format="Sequence" HeaderText="Seq"/>
            <gr:GuruGridTemplateColumn HeaderText="Trả phòng" UniqueName="CheckedOutAction" 
                ItemStyle-HorizontalAlign="Center" ItemStyle-Width="60px">
                <ItemTemplate>
                    <gr:CheckBox runat="server" ID="uxCheckOut" ToolTip="Nhấn vào đây nếu khách muốn trả trước phòng này" AutoPostBack="true" OnCheckedChanged="uxCheckOut_CheckedChanged" />
                </ItemTemplate>
            </gr:GuruGridTemplateColumn>
            <gr:GuruGridBoundColumn UniqueName="RoomName" Format="StaticString" DataField="RoomName" HeaderText="Phòng">
            </gr:GuruGridBoundColumn>
            <gr:GuruGridBoundColumn DataField="StayTime" Format="Number" HeaderText="Thời gian lưu trú">
            </gr:GuruGridBoundColumn>
            <gr:GuruGridBoundColumn DataField="RoomPrice" Format="Currency" HeaderText="Giá phòng">
            </gr:GuruGridBoundColumn>
            <gr:GuruGridBoundColumn DataField="RoomsAmount" Format="Currency" HeaderText="Tổng tiền phòng">
            </gr:GuruGridBoundColumn>
            <gr:GuruGridBoundColumn DataField="ServicesAmount" Format="Currency" HeaderText="Tổng tiền dịch vụ">
            </gr:GuruGridBoundColumn>
        </Columns>
    </MasterTableView>
</gr:GuruGrid>
<gr:GuruAjaxManagerProxy runat="server">
    <AjaxSettings>
        <gr:GuruAjaxSetting AjaxControlID="uxFeesGrid">
            <UpdatedControls>
                <gr:GuruUpdatedControl ControlID="uxFeesGrid" />
            </UpdatedControls>
        </gr:GuruAjaxSetting>
    </AjaxSettings>
</gr:GuruAjaxManagerProxy>

